package com.heima.utils.thread;

import com.heima.model.wemedia.pojos.WmUser;

/**
 * @author げっしょく
 * @date 2021/11/22
 */
public class WmThreadLocalUtil {

    private final static ThreadLocal<WmUser> thread = new ThreadLocal<>();

    public static void setThread(WmUser wmUser) {
        thread.set(wmUser);
    }

    public static WmUser getThread() {
        return thread.get();
    }

    public static void clean() {
        thread.remove();
    }
}
